<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * This class will be the entry point to the db, it will be changed into pooling and singleton later on
 *
 * @author Administrator
 */
class DbConnector {
    var $con;
    function  __construct() {
        $con = mysql_connect("localhost","root","lemonmew");
        if (!$con) {
            die('Could not connect: ' . mysql_error());
        }
        $this->con = $con;
    }

    public function getConnection() {
        return $this->con;
    }
}
?>
